<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="role/save" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">角色名称</label>
        <div class="layui-input-block">
            <input type="text" name="title" value='${obj.title!""}' required="required" title="请输入角色名称" placeholder="请输入角色名称" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">角色描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入角色描述" required="required" title="请输入角色描述" class="layui-textarea" name="desc">${obj.desc!""}</textarea>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        <input type='hidden' value='${obj.id?c}' name='id'/>
        <button class="layui-btn" type='submit'>保存角色</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消</button>
    </div>
</form>